from selenium import webdriver
from selenium.webdriver import ActionChains
import time

driver = webdriver.Firefox()
driver.get('https://www.baidu.com')
driver.maximize_window()

# 鼠标悬停
ActionChains(driver).move_to_element(driver.find_element_by_xpath("//div[@id='u1']/span[1]")).perform()

time.sleep(1)
driver.quit()
